#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}




void Widget::on_pushButton_light_clicked()
{
    this->setStyleSheet("background: RGB(240, 240, 240)");

    ui->textEdit->setStyleSheet("background-color: RGB(250, 250, 250)); color:black");
    ui->pushButton_light->setStyleSheet("color: RGB(225, 255, 255)");
    ui->pushButton_dark->setStyleSheet("color: RGB(225, 255, 255)");
}

void Widget::on_pushButton_dark_clicked()
{
    this->setStyleSheet("background: black");

    ui->textEdit->setStyleSheet("background-color: black; color:white");
    ui->pushButton_dark->setStyleSheet("color: white");
    ui->pushButton_light->setStyleSheet("background-color:red; color: RGB(150,0 , 255)");
}


//void Widget::on_pushButton_2_clicked()
//{

//}

//void Widget::on_pushButton_clicked()
//{

//}
